import axios from 'axios';
import {req, reqj} from './axiosFun';

/**
 * 评论管理
 **/
// 添加评论
export const ReviewAdd = (params) => { return req("post", "/review/add", params) };
// 查询所有评论信息
export const ReviewList = (params) => { return req("get", "/review/list", params) };
// 显示某厕所的所有评论
export const TolietReview = (params) => { return req("get", "/review/toilet/{id}", params) };
// 点赞厕所相关操作
export const ToiletCompliment = (params) => { return req("get", "/review/updateLikeNumber", params) };
// 厕所打分相关操作
export const ToiletScoring = (params) => { return req("get", "/review/updateScore", params) };
// 评论管理-修改状态
export const ReviewLock = (params) => { return req("get","/review/delete/"+params.userId+"/"+params.data.deleteStatus) };
